
<div class="order-list-page">
    <div class="fui-header">
		<div class="fui-header-left" ng-click="goback()">
            <a class="back"></a>
        </div>
		<div class="title">我的订单</div>
		<div class="fui-header-right"></div>
	</div>
	<div id="tab" class="fui-tab fui-tab-danger">
        <a ng-class="{'external active':pagedata.params.status == 10}" href="javascript:" ng-click="pagedata.params.status = 10;tool.get_list('jy_newnong/order/getlist/',true)">全部</a>
        <a ng-class="{'external active':pagedata.params.status == 0}" href="javascript:" ng-click="pagedata.params.status = 0;tool.get_list('jy_newnong/order/getlist/',true)">待支付</a>
        <a ng-class="{'external active':pagedata.params.status == 1}" href="javascript:" ng-click="pagedata.params.status = 1;tool.get_list('jy_newnong/order/getlist/',true)">已支付</a>
        <a ng-class="{'external active':pagedata.params.status == 2}" href="javascript:" ng-click="pagedata.params.status = 2;tool.get_list('jy_newnong/order/getlist/',true)">已完成</a>
        <a ng-class="{'external active':pagedata.params.status == 3}" href="javascript:" ng-click="pagedata.params.status = 3;tool.get_list('jy_newnong/order/getlist/',true)">已取消</a>
    </div>
	<div class='fui-content order-list' style="margin-top:4.5rem">
	<div class="fui-list-group order-item" ng-repeat="item in pagedata.list">
                <a class="fui-list external" style="padding: 0.42rem 0.5rem" data-nocache="true">
                    <div class="fui-list-inner">
                        <div class="subtitle"> 订单号: {{item.ordersn}}</div>
                    </div>
                    <div class="row-remark text-cancel" style="font-size: 0.65rem;text-align: right;">{{item.statustitle}}</div>
                    <div class="angle"></div>
                </a> 
                    <a class="external" data-nocache="true">
                        <div class="fui-list goods-list">
                            <div class="fui-list-media" style="">
                                <img class="" ng-src="{{tomedia(item.image) || '../core/resource/images/nopic.jpg'}}">
                            </div>
                            <div class="fui-list-inner" style="height:auto">
								<div class="text goodstitle towline">{{item.title}}</div>
								<div ng-show="pagedata.params.type == 'guoshu_list'" class="text bold">总购买：{{item.total}}棵</div>
								<div ng-show="pagedata.params.type == 'guoshu_list'" class="text" style="color:#f60;font-size:0.60rem">生长周期：{{item.animal.growtime}}天</div>
								<div ng-show="pagedata.params.type == 'guoshu_list'" class="text" style="color:#f60;font-size:0.60rem">预计收获时间：{{item.animal.shouyue>0?item.animal.shouyue+'月':item.animal.shouday}}</div>
								<div ng-show="pagedata.params.type == 'guoshu_list'" class="text" style="color:#f60;font-size:0.60rem">预计回报：{{item.animal.shoukg}}KG / {{item.animal.shoufee ||0}}元</div>
								<div ng-if="item.shoukg>0" class="text bold" style="color:red;font-size:0.60rem">实际收获：{{item.shoukg}}KG</div>
								<div ng-if="item.status>=5" class="text bold" style="color:red;font-size:0.60rem">收益方式：{{item.shoutypetitle}}<span ng-if="item.shoufee>0" style="padding-left:0.3rem;">￥{{item.shoufee}}</span></div>
								<div ng-if="item.sendtype==1 && item.address" class="subtitle towline" style="-webkit-line-clamp: 2;font-size:0.55rem">
									<span>寄送地址：{{item.address || '无'}}</span>
								</div>
							</div>
                            <div class="fui-list-angle" style="width:4rem">
                                ￥<span class="marketprice">{{item.money}}</span></div>
                        </div>
                    </a>
                <div class="fui-list-group-title lineblock">
					<span style="color:#999;font-size:0.55rem"><i class="icon jinyunicon icon-shijian" style="color:#f60;font-size:0.50rem"></i> {{item.createtime}}</span>
                    <span class="status noremark">共 <span>1</span> 个订单 实付: <span class="text-danger">￥{{item.pay}}</span></span>
                </div>
            <div class="fui-list-group-title lineblock opblock">
				<span class="status noremark">
					<div ng-show="item.status == 3" class="btn btn-sm btn-default-o order-delete" href="javascript:" ng-click="post({},'del','id='+item.id)">删除订单</div>
					<div ng-show="item.status == 0" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="pay_submit({},'//pay/id='+item.id,'jy_newnong/order//type='+pagedata.params.type,'jy_newnong/order//type='+pagedata.params.type)">支付订单</div>
					<div ng-show="item.status == 0" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'cancel','id='+item.id)">取消订单</div>
					<div ng-show="item.status == 12" class="btn btn-sm btn-danger-o order-finish" href="javascript:" ng-click="post({},'receive','id='+item.id)">确认服务</div>
					<span ng-show="pagedata.params.type == 'guoshu_list'" class="btn btn-sm btn-warning-o order-finish" style="line-height:1.8;" ng-click="access_json('/myguoshu/')">查看果树</span>
				</span>
            </div>
        </div>
	</div>
	<div class="content-empty" ng-show="pagedata.list.length == 0 ">
		  <i class="icon jinyunicon icon-cry" style="width: 6rem;margin-bottom: 0.5rem;"></i><br/><p style="color: #999;font-size: .75rem">您暂时没有订单！</p>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_newnong/order/getlist/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_newnong/order/getlist/');
}
</script>